package day06;

/**
 * 业务类
 *
 *   
 */
public class ShapeService {
	
	//面向父类编程--方法的参数列表写成父类
	/*
	 * 获取图形面积
	 */
	public double getArea(Shape shape) {
		
		return shape.calcArea();
	}

	/** 
	     获取图形周长
	 */
	public double length(Shape shape) {
		return shape.calcLength();
		
	}
}